﻿<%@ page language="VB" masterpagefile="~/promocionVenta.master" autoeventwireup="false" inherits="mantenedores_corredora, App_Web_corredora.aspx.eb71f606" title=" .:: EVOLTA | Promoción ::. " enableEventValidation="false" theme="PrincipalTheme" maintainScrollPositionOnPostBack="true" maxPageStateFieldLength="250" %>

<%@ MasterType VirtualPath="~/promocionVenta.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register Assembly="Flan.Controls" Namespace="Flan.Controls" TagPrefix="flan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style type="text/css">
#txtBuscar
{
width: 299px;
}
.style2
{
width: 44%;
}
.style4
{
width: 13%;
}
.filaEncabezadoPrincipal
{
background-image: url('../imagenes/px_td.jpg');
width: 100%;
background-repeat: repeat;
}
.filaEncabezadoTitulo
{
background-image: url('../imagenes/submenu3.PNG');
background-repeat: repeat;
}
.filaEncabezado
{
background-image: url('../imagenes/submenu3.PNG');
width: 100%;
background-repeat: repeat;
}
.colGrilla
{
background-image: url('../imagenes/submenu2.PNG');
height: 20px;
background-repeat: repeat;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<table style="width: 100%; background-color: #f4f4f4;" cellspacing="0">
<tr class="filaEncabezadoPrincipal">
<td>
<table width="100%">
<tr>
<td>
<asp:Label ID="Label1" runat="server" CssClass="CeldaTituloTexto" Text="Mantenedor de Corredoras"></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
</table>
<asp:Panel ID="pnlVendedores" runat="server" Width="100%">
<table style="width: 100%; background-color: #f4f4f4" class="EditarLabel" cellspacing="0"
border="1" cellpadding="0">
<tbody>
<tr>
<td style="width: 100%; padding-top: 5px; padding-bottom: 3px">
</td>
</tr>
<tr>
<td style="width: 100%; padding-top: 5px; padding-bottom: 3px">
<asp:Label ID="Label3" runat="server" CssClass="CeldaTituloTexto" Text="Buscar: "
SkinID="lblNormal"></asp:Label>
<input id="txtBuscar" runat="server" class="CsstxtFiltro" type="text" autocomplete="off"
maxlength="55" /><asp:Button ID="btnBuscar" runat="server" Text="Buscar" CausesValidation="False"
SkinID="btnNormalSkin" UseSubmitBehavior="False" />
<asp:Button ID="btnAgregar" runat="server" Text="Agregar" CausesValidation="False"
SkinID="btnNormalSkin" UseSubmitBehavior="False" />
<asp:Button ID="btnExcel" runat="server" CausesValidation="False" SkinID="btnNormalSkin"
Text="Excel" UseSubmitBehavior="False" />
</td>
</tr>
<tr>
<td>
<div style="width: 100%; height: 20px; scrollbar-face-color: #B5B5B5;" class="DivPanelGrillaEncabezado">
<table cellpadding="0" cellspacing="1" width="100%">
<tr align="center">
<td align="center" valign="middle" width="10%" class="colGrilla">
<asp:LinkButton ID="lnkBtnCodigo" runat="server" SkinID="lnkBtnEncabezado" CommandArgument="idCorredora"
CommandName="idCorredora" Height="100%">Código</asp:LinkButton>
</td>
<td align="center" valign="middle" width="30%" class="colGrilla">
<asp:LinkButton ID="lnkBtnNombre" runat="server" CommandArgument="NombresCompletos"
CommandName="NombresCompletos" Height="100%" SkinID="lnkBtnEncabezado">Nombre de
corredora</asp:LinkButton>
</td>
<td align="center" valign="middle" width="15%" class="colGrilla">
<asp:LinkButton ID="lnkBtnTelefono" runat="server" CommandArgument="telefonoCorredora"
CommandName="telefonoCorredora" Height="100%" SkinID="lnkBtnEncabezado">Telefono</asp:LinkButton>
</td>
<td align="center" valign="middle" width="15%" class="colGrilla">
<asp:LinkButton ID="lnkBtnEmail" runat="server" CommandArgument="emailCorredora"
CommandName="emailCorredora" Height="100%" SkinID="lnkBtnEncabezado">Email</asp:LinkButton>
</td>
<td align="center" valign="middle" width="19%" class="colGrilla">
<asp:LinkButton ID="lnkBtnEstado" runat="server" SkinID="lnkBtnEncabezado" CommandArgument="desEstado"
CommandName="desEstado" Height="100%">Estado</asp:LinkButton>
</td>
<td align="center" valign="middle" width="11%" class="colGrilla">
<asp:Label ID="lblEliminar" runat="server" Text="Eliminar" SkinID="lblEncabezado"></asp:Label>
</td>
</tr>
</table>
</div>
<div style="overflow-y: scroll; overflow-x: hidden; width: 100%; height: 470px; scrollbar-face-color: #B5B5B5;"
class="DivPanelGrillaCuerpo">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="gvwLista" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="0" ForeColor="Black"
GridLines="Vertical" Width="99%" Font-Names="Tahoma" DataKeyNames="idCorredora"
SkinID="gvwListaSkin" ShowHeader="False" EnableSortingAndPagingCallbacks="True">
<Columns>
<asp:TemplateField HeaderText="Código">
<ItemTemplate>
<asp:LinkButton ID="lnkCodigo" runat="server" CausesValidation="False" CommandName="Edit"
ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("idCorredora","{0:00000}") %>' CommandArgument='<%# Eval("idCorredora") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="10%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="10%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="NombreCorredora">
<ItemTemplate>
<asp:LinkButton ID="lnkNombre" runat="server" CausesValidation="False" CommandName="Edit"
ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("NombresCompletos") %>' CommandArgument='<%# Eval("idCorredora") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="30%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="30%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Telefono">
<ItemTemplate>
<asp:LinkButton ID="lnkTelefono" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idCorredora") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("telefonoCorredora") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="15%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="15%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Email">
<ItemTemplate>
<asp:LinkButton ID="lnkEmail" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idCorredora") %>'
CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("emailCorredora") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="15%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="15%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Estado">
<ItemTemplate>
<asp:LinkButton ID="lnkEstado" runat="server" CausesValidation="False" CommandName="Edit"
ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
Text='<%# Eval("desEstado") %>' CommandArgument='<%# Eval("idCorredora") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="19%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="19%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Eliminar">
<ItemTemplate>
<asp:LinkButton ID="lnkEliminar" runat="server" CausesValidation="False"
ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;"
CommandArgument='<%# Eval("idCorredora") %>' ToolTip="Eliminar Corredora">
<asp:ImageButton ID="btnEliminar" runat="server" CommandName="Delete" ImageUrl="~/Imagenes/Procesos/borrar.png"
OnClientClick="return ConfirmaEliminacion(this);" Style="cursor: pointer" ToolTip="Eliminar Corredora"
CommandArgument='<%# Eval("idCorredora") %>' /></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="10%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="10%" Height="20px" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
</tbody>
</table>
</asp:Panel>
<ajax:ModalPopupExtender ID="mpDetalle" runat="server" TargetControlID="btnAgregar"
BackgroundCssClass="modalBackground" DropShadow="True" PopupControlID="pnlIngresar"
PopupDragHandleControlID="lblTitulo">
</ajax:ModalPopupExtender>
<asp:Panel ID="pnlIngresar" runat="server" CssClass="modalPopup" Width="350px" Height="255px"
Style="display: none;">
<table cellpadding="0" cellspacing="0" class="style1" align="right" width="100%">
<tr>
<td class="style2" colspan="3" bgcolor="#E44146">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:Label ID="lblTitulo" runat="server" SkinID="lblFormulario" Text="Accion [Registrar]"
ToolTip="Registrar"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td class="style2" align="right" valign="middle">
&nbsp;
</td>
<td rowspan="12">
&nbsp;
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel12" runat="server">
<ContentTemplate>
<asp:TextBox ID="txtId" runat="server" Style="display: none;"></asp:TextBox></ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right" class="style2" valign="middle">
&nbsp;
<asp:Label ID="Label5" runat="server" Text="Nombre: " SkinID="lblNormal"></asp:Label>
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<input id="txtNombreCorredora" runat="server" autocomplete="off" class="CsstxtNormalObligatorio"
onkeypress="return validarSoloLetras(event);" type="text" maxlength="22" />
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right" class="style2" valign="middle">
<asp:Label ID="Label15" runat="server" Text="Apellido Paterno:" SkinID="lblNormal"></asp:Label>
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel14" runat="server">
<ContentTemplate>
<asp:TextBox ID="txtApePatCorredora" runat="server" onkeypress="return validarSoloLetras(event);"
CssClass="CsstxtNormalObligatorio" MaxLength="22"></asp:TextBox>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right" class="style2" valign="middle">
<asp:Label ID="Label14" runat="server" Text="Apellido Materno:" SkinID="lblNormal"></asp:Label>
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel13" runat="server">
<ContentTemplate>
<asp:TextBox ID="txtApeMatCorredora" runat="server" onkeypress="return validarSoloLetras(event);"
CssClass="CsstxtNormalObligatorio" MaxLength="22"></asp:TextBox>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right" class="style2" valign="middle">
<asp:Label ID="Label17" runat="server" Text="Email:" SkinID="lblNormal"></asp:Label>
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel16" runat="server">
<ContentTemplate>
<asp:TextBox ID="txtEmailCorredora" runat="server" autocomplete="off" CssClass="CsstxtNormal"
type="text" MaxLength="30" />
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right" class="style2" valign="middle">
<asp:Label ID="Label18" runat="server" Text="Telefono:" SkinID="lblNormal"></asp:Label>
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel17" runat="server">
<ContentTemplate>
<asp:TextBox ID="txtTelefonoCorredora" runat="server" onkeypress="return VerificarTelefono(event);"
MaxLength="10" CssClass="CsstxtNormal"></asp:TextBox>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right" class="style2" valign="middle">
<asp:Label ID="Label19" runat="server" Text="Celular:" SkinID="lblNormal"></asp:Label>
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel18" runat="server">
<ContentTemplate>
<asp:TextBox ID="txtCelularCorredora" runat="server" onkeypress="return VerificarTelefono(event);"
MaxLength="10" CssClass="CsstxtNormal"></asp:TextBox>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right" class="style2" valign="middle">
<asp:Label ID="Label20" runat="server" Text="Direccion:" SkinID="lblNormal"></asp:Label>
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel19" runat="server">
<ContentTemplate>
<asp:TextBox ID="txtDireccionCorredora" runat="server" CssClass="CsstxtNormal" MaxLength="55"></asp:TextBox>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right" class="style2">
<asp:Label ID="Label13" runat="server" Text="Estado: " SkinID="lblNormal"></asp:Label>
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel11" runat="server">
<ContentTemplate>
<select id="selEstado" runat="server" class="CssddlNormal" name="selEstado">
<option></option>
</select>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td class="style2" align="right" valign="middle">
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td align="right" class="style2" valign="middle">
&nbsp;
<asp:Button ID="btnGuardar" runat="server" CausesValidation="False" SkinID="btnNormalSkin"
Text="Guardar" OnClientClick="return validar();" />
</td>
<td>
<asp:Button ID="btnCancelar" runat="server" CausesValidation="False" SkinID="btnNormalSkin"
Text="Cancelar" />
</td>
</tr>
<tr>
<td class="style2">
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
</table>
</asp:Panel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="0">
<ProgressTemplate>
<div id="divProgress" class="divProgreso">
<img src="../imagenes/ajax-loader.gif" align="middle" alt="Procesando" />
<asp:Label ID="lblprogreso" runat="server" Text=" Procesando..." CssClass="EditarLabel"></asp:Label>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
<flan:UpdateProgressOverlayExtender ID="UpdateProgressOverlayExtender1" runat="server"
CssClass="updateProgress" OverlayType="Browser" TargetControlID="UpdateProgress1" />
<script src="../javascript/Evoltat.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
function ConfirmaEliminacion(sender) {
return confirm('¿Está seguro que desea eliminar la Corredora?\n' + sender.alt);
}
function MuestraPanel() {
limpiarControles();
$find(mpDetalle).show();
return true;
}
function limpiarControles() {
document.getElementById('ctl00$ContentPlaceHolder1$txtNombreCorredora').value = '';
document.getElementById('ctl00$ContentPlaceHolder1$txtApePatCorredora').value = '';
document.getElementById('ctl00$ContentPlaceHolder1$txtApeMatCorredora').value = '';
document.getElementById('ctl00$ContentPlaceHolder1$txtEmailCorredora').value = '';
document.getElementById('ctl00$ContentPlaceHolder1$txtTelefonoCorredora').value = '';
document.getElementById('ctl00$ContentPlaceHolder1$txtCelularCorredora').value = '';
document.getElementById('ctl00$ContentPlaceHolder1$txtDireccionCorredora').value = '';
document.getElementById('ctl00$ContentPlaceHolder1$selEstado').selectedIndex = 1;
document.getElementById('ctl00$ContentPlaceHolder1$selEstado').disabled = 'disabled';
}
function validar() {
if (document.getElementById('ctl00$ContentPlaceHolder1$txtNombreCorredora').value == '') {
alert('Debe ingresar el nombre de la corredora');
document.getElementById('ctl00$ContentPlaceHolder1$txtNombreCorredora').focus();
return (false);
}
if (document.getElementById('ctl00$ContentPlaceHolder1$txtApePatCorredora').value == '') {
alert('Debe ingresar el apellido paterno de la corredora');
document.getElementById('ctl00$ContentPlaceHolder1$txtApePatCorredora').focus();
return (false);
}
if (document.getElementById('ctl00$ContentPlaceHolder1$txtApeMatCorredora').value == '') {
alert('Debe ingresar el apellido materno de la corredora');
document.getElementById('ctl00$ContentPlaceHolder1$txtApeMatCorredora').focus();
return (false);
}
if (document.getElementById('ctl00$ContentPlaceHolder1$txtEmailCorredora').value.length > 0) {
if (validarEmailj(document.getElementById('ctl00$ContentPlaceHolder1$txtEmailCorredora').value)) {
} else {
document.getElementById('ctl00$ContentPlaceHolder1$txtEmailCorredora').focus();
return (false);
}
}
}
</script>
</asp:Content>